<?php
class PNUserHotelMemberArray extends PNObjectArray {
  function PNUserHotelMemberArray($init=null, $where='')
  {
    $this->PNObject();

    $this->_objType       = 'hotelbooking_hotelmember';
    $this->_objField      = 'id';
    $this->_objPath       = 'form';

    $this->_init($init, $where);
  }
  
  function genFilter(){
    $uid = SessionUtil::getVar('uid');
    
    if($uid){
      $wheres[] = $this->_columns['cr_uid']."  = ".$uid;
    }
    if(count($wheres)>1){
      $where = implode(" AND ",$wheres);
    }else{
      $where = $wheres[0];
    }
    
    return $where;
  }
}